package com.atguigu.algorithm;

import java.util.List;
import java.util.Scanner;

public class FindTheSum {
    public static int findTheSumOfArray(List<Integer> list){
        int sum=0;
        for(int i=0;i<list.size();i++){
            sum+=list.get(i);
        }
        return sum;
    }
    public static void findTheSumFrom(int[] arr, int start, int end, List<Integer> list){
        if(findTheSumOfArray(list)==end){
            for(int i:list){
                System.out.print(i+" ");
            }
            System.out.println();
        }
        if(findTheSumOfArray(list)>end){
            list.remove(arr[start-1]);
            return;
        }

        findTheSumFrom(arr,start+1,end,list);
    }
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNext()){
            int n= scanner.nextInt();
            int m=scanner.nextInt();
            for(int i=1;i<n;i++){

            }
        }
    }
}
